﻿
using KingerRobot.MexicoSailunMDC.Dao;

namespace KingerRobot.MexicoSailunMDC.SpiService;

internal class BWcsScannerWarehouseDistance : IWcsScannerWarehouseDistance
{
    public List<POWcsScannerWarehouseDistance> GetScannerWarehouseDistance()
    {
        var db = Db.Default;
        var result = db.WcsScannerWarehouseDistances.Where(t => t.UseFlag == 1).ToList();
        return result;
    }
    public List<POWcsScannerWarehouseDistance> GetScannerWarehouseDistanceByScannerLoc(long scannerLoc)
    {
        var db = Db.Default;
        var result = db.WcsScannerWarehouseDistances.Where(t => t.UseFlag == 1 && t.ScannerLocId == scannerLoc).ToList();
        return result;
    }
}
